package com.lxhll.personnel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxhll.personnel.entity.Department;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface DepartmentService extends IService<Department> {
    Department getDepartmentById(Integer id);


    /**
     * 统计选择月份的每个部门的总人数，默认为当前月
     * @param
     * @return
     */
    List<Map<String,Object>> statisticsEmployeeNumber();

    List<Map<String,Object>> statisticsDetails(String date);

    boolean removeDepartmentByIds(Integer[] id);

    boolean updateDepartmentById(Department department);

}
